package com.gxh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.gxh.dto.UploadMachinePageQueryDTO;
import com.gxh.entity.UserMachine;
import com.gxh.vo.UserMachineItemVO;
import com.gxh.vo.UserMachineVO;

import java.util.List;

public interface UserMachineMapper extends BaseMapper<UserMachine> {
    /**
     * 获取用户设备列表
     *
     * @param status
     * @param userId
     * @return
     */
    List<UserMachineItemVO> list(Integer status, Long userId);

    /**
     * 用户设备分页查询
     * @param uploadMachinePageQueryDTO
     * @return
     */
    Page<UserMachineVO> uploadPageQuery(UploadMachinePageQueryDTO uploadMachinePageQueryDTO);
}
